ECHO OFF
REM Script to set classpath

SET WEB_CRAWLER_APP_CLASSPATH=.

SETLOCAL EnableDelayedExpansion

SET JarsDir=%1

IF DEFINED CLASSPATH (SET CLASSPATHJ=%CLASSPATH%;.) ELSE (SET CLASSPATHJ=.)

FOR %%i in ("%JarsDir%\*.jar") DO SET CLASSPATHJ=!CLASSPATHJ!;%%i

ENDLOCAL & SET WEB_CRAWLER_APP_CLASSPATH=%CLASSPATHJ%